package cn.fly.chatgpt.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class Chatgpt {
    private String question;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime qusTime;

    private String answer;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime ansTime;

    private Long chatId;

    @Override
    public String toString() {
        return "Chatgpt{" +
                "question='" + question + '\'' +
                ", qusTime=" + qusTime +
                ", answer='" + answer + '\'' +
                ", ansTime=" + ansTime +
                ", chatId=" + chatId +
                ", userId=" + userId +
                '}';
    }

    public Long getChatId() {
        return chatId;
    }

    public void setChatId(Long chatId) {
        this.chatId = chatId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Chatgpt(String question, LocalDateTime qusTime, String answer, LocalDateTime ansTime, Long chatId, Integer userId) {
        this.question = question;
        this.qusTime = qusTime;
        this.answer = answer;
        this.ansTime = ansTime;
        this.chatId = chatId;
        this.userId = userId;
    }

    private Integer userId;



    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public LocalDateTime getQusTime() {
        return qusTime;
    }

    public void setQusTime(LocalDateTime qusTime) {
        this.qusTime = qusTime;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public LocalDateTime getAnsTime() {
        return ansTime;
    }

    public void setAnsTime(LocalDateTime ansTime) {
        this.ansTime = ansTime;
    }


}
